package com.liehu.user.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 职工表(管理员)
 */
@TableName("tb_employee")
public class Employee  implements Serializable {
    @TableId(type = IdType.INPUT)
    private String id;
    private Date birthday;//员工生日

    private String contractPeriod;//签订的合同年限
    private Date  contractTime;//签订合同的时间
    private String education;//学历
    private Date entryTime;//入职时间
    private String gender;//性别，0为女，1为男
    private String graduates;//是否应届，0为否，1为是
    private String idCard;//身份证号码
    private String realName;//真实姓名
    private String jobNumber;//工号
    private String loginName;//用户名
    private String marry;//是否已婚，0为否，1为是
    private String birth;//是否已育，0为否，1为是
    private String mobile;//电话
    private String nation;//民族
    private String nativeAddress;//户口所在地
    private String nativePlace;//籍贯
    private String password;//密码
    private String politic;//政治面貌
    private String putRecord;//是否备案
    private String registeredResidence;//户口性质
    private String remarks;//备注
    private String roleId; //角色id
    private String type; //员工类型,0内部员工，1残疾人，2不购买保险

    @TableField(fill = FieldFill.INSERT) //使用Mybatis-plus插入时自动填充状态
    private String status;//状态  状态，1正常，0冻结
    @TableField(fill = FieldFill.INSERT) //使用Mybatis-plus插入时自动填充时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE) //使用Mybatis-plus插入更新时自动填充时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getContractPeriod() {
        return contractPeriod;
    }

    public void setContractPeriod(String contractPeriod) {
        this.contractPeriod = contractPeriod;
    }

    public Date getContractTime() {
        return contractTime;
    }

    public void setContractTime(Date contractTime) {
        this.contractTime = contractTime;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public Date getEntryTime() {
        return entryTime;
    }

    public void setEntryTime(Date entryTime) {
        this.entryTime = entryTime;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getGraduates() {
        return graduates;
    }

    public void setGraduates(String graduates) {
        this.graduates = graduates;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getJobNumber() {
        return jobNumber;
    }

    public void setJobNumber(String jobNumber) {
        this.jobNumber = jobNumber;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getMarry() {
        return marry;
    }

    public void setMarry(String marry) {
        this.marry = marry;
    }

    public String getBirth() {
        return birth;
    }

    public void setBirth(String birth) {
        this.birth = birth;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    public String getNativeAddress() {
        return nativeAddress;
    }

    public void setNativeAddress(String nativeAddress) {
        this.nativeAddress = nativeAddress;
    }

    public String getNativePlace() {
        return nativePlace;
    }

    public void setNativePlace(String nativePlace) {
        this.nativePlace = nativePlace;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPolitic() {
        return politic;
    }

    public void setPolitic(String politic) {
        this.politic = politic;
    }

    public String getPutRecord() {
        return putRecord;
    }

    public void setPutRecord(String putRecord) {
        this.putRecord = putRecord;
    }

    public String getRegisteredResidence() {
        return registeredResidence;
    }

    public void setRegisteredResidence(String registeredResidence) {
        this.registeredResidence = registeredResidence;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "id='" + id + '\'' +
                ", birthday=" + birthday +
                ", contractPeriod='" + contractPeriod + '\'' +
                ", contractTime=" + contractTime +
                ", education='" + education + '\'' +
                ", entryTime=" + entryTime +
                ", gender='" + gender + '\'' +
                ", graduates='" + graduates + '\'' +
                ", idCard='" + idCard + '\'' +
                ", realName='" + realName + '\'' +
                ", jobNumber='" + jobNumber + '\'' +
                ", loginName='" + loginName + '\'' +
                ", marry='" + marry + '\'' +
                ", birth='" + birth + '\'' +
                ", mobile='" + mobile + '\'' +
                ", nation='" + nation + '\'' +
                ", nativeAddress='" + nativeAddress + '\'' +
                ", nativePlace='" + nativePlace + '\'' +
                ", password='" + password + '\'' +
                ", politic='" + politic + '\'' +
                ", putRecord='" + putRecord + '\'' +
                ", registeredResidence='" + registeredResidence + '\'' +
                ", remarks='" + remarks + '\'' +
                ", roleId='" + roleId + '\'' +
                ", type='" + type + '\'' +
                ", status='" + status + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
